package com.hg.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hg.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * created by skh on 2019/12/15
 */

@Mapper
public interface UserDao extends BaseMapper<User> {


    @Select("select * from tb_user")
    public List<User> selectUserList();

    @Insert("insert into tb_user (name) values (#{name})")
    void addUser(@Param("name") String name);

    void testInsert();

}
